package top.zuli.package01.class06;

public class AnonymousObject2Use {

    public void useAnonymousObject2(AnonymousObject2 anonymousObject2){
        System.out.println("id:"+anonymousObject2.id+",name:"+anonymousObject2.name+",age:"+anonymousObject2.age);
    }

    public static void main(String[] args) {
        //匿名对象当作参数使用
        AnonymousObject2Use anonymousObject2Use = new AnonymousObject2Use();
        anonymousObject2Use.useAnonymousObject2(new AnonymousObject2());
    }
}
